/**
 * 文件操作相关的类型定义
 */

// 文件统计信息
export interface FileStats {
  size: number
  modifiedTime: Date
  isDirectory: boolean
}

// 复制操作信息
export interface CopyOperation {
  sourcePath: string
  targetPath: string
  overwrite: boolean
}

// 批量操作结果
export interface BatchResult {
  successful: CopyOperation[]
  failed: FailedOperation[]
  totalCount: number
}

// 失败的操作信息
export interface FailedOperation extends CopyOperation {
  error: string
}

// 文件树节点
export interface FileTreeNode {
  id: string
  name: string
  path: string
  type: 'file' | 'folder'
  size?: number
  timestamp?: number
  children?: FileTreeNode[]
  isExpanded?: boolean
}